/*package com.zhd.config;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;

import com.zaxxer.hikari.HikariDataSource;

@Configuration
public class WetherStationDataSourceConfig {

	@Bean(name = "wsDataSource")
	@ConfigurationProperties(prefix = "spring.datasource.mssql.hikari")
	public DataSource reservoirDataSource() {

		HikariDataSource hikariDataSource = (HikariDataSource) DataSourceBuilder.create().build();
		return hikariDataSource;
	}

	@Bean(name = "wsTemplate")
	public JdbcTemplate reservoirTemplate(@Qualifier("wsDataSource") DataSource dataSource) {
		return new JdbcTemplate(dataSource);
	}
}*/